/*
 * @Author: yangzonglong
 * @Date: 2021-03-03 14:44:59
 * @version: v1.0.0
 * @Descripttion: Input 控制器
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-07-29 11:25:45
 * @Auditor:
 */
import React from 'react';
import ImgItemController from '../components/ImgItemController';
import useControlOptions from '../../hooks/useControlOptions';
import { ImgItemProps } from './Img';
const Controller = () => {
  const { options, changeFormItemProps, changeControlProps } = useControlOptions<ImgItemProps>('imgProps');

  return (
    <ImgItemController
      onChange={changeFormItemProps}
      changeControlProps={changeControlProps}
      imgProps={options?.imgProps}
      options={options?.formItemProps}
    />
  );
};

export default Controller;
